Optimal. Leaf size=152 \[ \frac {2 F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (a (3 A+C)+b B)}{3 d}-\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (5 a B+5 A b+3 b C)}{5 d}+\frac {2 \sin (c+d x) (5 a B+5 A b+3 b C)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 (a C+b B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.30, antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4112, 3031, 3021, 2748, 2636, 2639, 2641} \[ \frac {2 F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (a (3 A+C)+b B)}{3 d}-\frac {2 E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (5 a B+5 A b+3 b C)}{5 d}+\frac {2 \sin (c+d x) (5 a B+5 A b+3 b C)}{5 d \sqrt {\cos (c+d x)}}+\frac {2 (a C+b B) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2636
Rule 2639
Rule 2641
Rule 2748
Rule 3021
Rule 3031
Rule 4112
Rubi steps
\begin {align*} \int \frac {(a+b \sec (c+d x)) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx &=\int \frac {(b+a \cos (c+d x)) \left (C+B \cos (c+d x)+A \cos ^2(c+d x)\right )}{\cos ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}-\frac {2}{5} \int \frac {-\frac {5}{2} (b B+a C)-\frac {1}{2} (5 A b+5 a B+3 b C) \cos (c+d x)-\frac {5}{2} a A \cos ^2(c+d x)}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (b B+a C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}-\frac {4}{15} \int \frac {-\frac {3}{4} (5 A b+5 a B+3 b C)-\frac {5}{4} (b B+a (3 A+C)) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (b B+a C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}-\frac {1}{5} (-5 A b-5 a B-3 b C) \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx-\frac {1}{3} (-b B-a (3 A+C)) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {2 (b B+a (3 A+C)) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (b B+a C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 (5 A b+5 a B+3 b C) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}-\frac {1}{5} (5 A b+5 a B+3 b C) \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 (5 A b+5 a B+3 b C) E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d}+\frac {2 (b B+a (3 A+C)) F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 b C \sin (c+d x)}{5 d \cos ^{\frac {5}{2}}(c+d x)}+\frac {2 (b B+a C) \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 (5 A b+5 a B+3 b C) \sin (c+d x)}{5 d \sqrt {\cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.48, size = 136, normalized size = 0.89 \[ \frac {3 \sin (2 (c+d x)) (5 a B+5 A b+3 b C)+10 \cos ^{\frac {3}{2}}(c+d x) F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (a (3 A+C)+b B)-6 \cos ^{\frac {3}{2}}(c+d x) E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) (5 a B+5 A b+3 b C)+10 (a C+b B) \sin (c+d x)+6 b C \tan (c+d x)}{15 d \cos ^{\frac {3}{2}}(c+d x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.72, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {C b \sec \left (d x + c\right )^{3} + {\left (C a + B b\right )} \sec \left (d x + c\right )^{2} + A a + {\left (B a + A b\right )} \sec \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}}{\sqrt {\cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 13.93, size = 742, normalized size = 4.88 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (b \sec \left (d x + c\right ) + a\right )}}{\sqrt {\cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 7.09, size = 217, normalized size = 1.43 \[ \frac {6\,C\,b\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {5}{4},\frac {1}{2};\ -\frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )+30\,A\,b\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )+10\,B\,b\,\cos \left (c+d\,x\right )\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{15\,d\,{\cos \left (c+d\,x\right )}^{5/2}\,\sqrt {1-{\cos \left (c+d\,x\right )}^2}}+\frac {2\,A\,a\,\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )}{d}+\frac {2\,B\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,C\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \sec {\left (c + d x \right )}\right ) \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )}{\sqrt {\cos {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________